package com.fang.api_encryption.cryptoUtil;

import lombok.Getter;

/**
 * @Description 算法分为加密算法和签名算法，更多算法实现见：<br/>
 * * <a href="https://docs.oracle.com/javase/8/docs/technotes/guides/security/StandardNames.html#impl">jdk8中的标准算法</a>
 * @Author Bernie
 * @Date 2023/11/28 15:21
 **/
public class Algorithm {

    @Getter
    private String name;
    @Getter
    private String transformation;
    @Getter
    private int keySize;

    public Algorithm(String name, int keySize) {
        this(name, null, keySize);
    }

    public Algorithm(String name, String transformation, int keySize) {
        this.name = name;
        this.transformation = transformation;
        this.keySize = keySize;
    }

}